Skip to content

Update Directus SDK examples (support for extensions)#68

Open
kheiner wants to merge 35 commits intodirectus:mainfrom
kheiner:fix/sdk-support-extensions
Open

Update Directus SDK examples (support for extensions)#68
kheiner wants to merge 35 commits intodirectus:mainfrom
kheiner:fix/sdk-support-extensions

Conversation

@kheiner
Copy link
Copy Markdown
Contributor

@kheiner kheiner commented Apr 27, 2026

This PR assumes #66 is going to be merged, it made more sense to build from a branch that didn't need me to recreate fixes already made.

Adds Directus SDK code examples to the six extension endpoints that previously showed // Not supported in Directus SDK.

Changes

  • PATCH /extensions/{id}: updateExtension(id, data)
  • DELETE /extensions/{id}: deleteExtension(id)
  • GET /extensions/registry: readRegistryExtensions(query?)
  • POST /extensions/registry/install: installRegistryExtension(id, version)
  • POST /extensions/registry/reinstall: reinstallRegistryExtension(id)
  • DELETE /extensions/registry/uninstall/{id}: uninstallRegistryExtension(id)

Related

Companion to directus/directus#27310, directus/directus#27311, directus/directus#27312 will add these SDK commands to @directus/sdk if merged.

P.S. I can't put labels, but this is 'future release' or whatever equivalent is for pending review on the monorepo.

gaetansenn and others added 30 commits November 7, 2025 19:19
Changed 'data' type from array to object with properties for name, label, driver, and icon.
Added details explaining that oath is not available in Directus SDK and GraphQL. Fixes directus#42 

This should also enable the REST endpoint to display.
Resolves directus#16

Add `type: object` to schema for:
 - Export Data to a File
 - Generate a Hash
 - Verify a Hash
 - Manually Sort Items in Collection
utils/hash/generate and utils/hash/verify contained a `.` at the end of
summary which is inconsistent with the rest of the project.
Adds Schema reference as well as the applicable CRUD options.

NOTE: I opted to clarify in filenames that they reference accessRules
rather than trying to figure out how to pluralize accesses in a way that
makes sense.

Fixes directus#40
TODO: the SDK examples need to be revisited after the following issues
are resolved in the monorepo
directus/directus#27310
directus/directus#27311
directus/directus#27312
Revert has been around a while, looks like it was just missed in
previous spec.
Translations was added in v.11.17.x
An enhancement to directus#61 commit 2ac6094 :
- Add more details to explain conditions that bypass might be necessary
- Version updated, force is introduced in
8c4df17bb6463d0678bff985c161d1376b980325 but there's not a tagged
release. 11.17.3 is at least closest active release right now.
Resolved conflicts by keeping POST method and application/zip responses
(matching API implementation) over pr-26006's incorrect GET variants.
Also fixed duplicate YAML key in oauth.yaml introduced by prior merge.

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
kheiner added 5 commits April 26, 2026 15:56
…distinct entries

- restore singleton as it's own path with PATCH and GET only => I had to
double up the ghost RTL character to make that happen (see directus#64)
- fix request body schemas for updateItems and deleteItems (keys and
query forms)
- fix title casing
create ignore file for redocly to supress warnings regarding ping and
health
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants